/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.common.f;

import com.qihoo.gamecenter.sdk.common.i.c;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;

public class b {
    private static b a = null;
    private a b;

    public static synchronized b a() {
        if (a == null)
            a = new b();
        return a;
    }

    private b() {
        byte[] arrayOfByte = { 48, -126, 1, 34, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 1, 5, 0, 3, -126, 1,
                15, 0, 48, -126, 1, 10, 2, -126, 1, 1, 0, -111, -19, -40, -108, -89, 75, -91, -70, 23, -43, 72, -108,
                29, -77, -99, 23, 70, 34, -68, -122, -29, -79, -60, 115, 115, -83, -35, -83, -67, -25, 104, -80, -108,
                -48, 81, 104, -108, 16, -75, 115, -78, 87, -22, 117, -109, -84, -122, 114, 15, -121, 92, -15, 80, -9,
                -7, -71, -103, -14, -26, -68, 78, 51, 83, 47, -54, 1, 1, 87, -1, 61, 95, -27, -76, 69, -109, 14, -92,
                41, -128, -10, -118, -90, -66, 77, 99, 96, 39, -110, 99, -91, -18, 127, 55, 27, 17, -123, -113, 119,
                -127, -97, -66, 52, 22, 53, 73, -128, 120, -5, 19, 28, -120, 115, -120, -80, 31, -36, -125, 3, -96, 40,
                25, 26, -97, 80, -123, 84, -7, 95, 23, -56, 75, 21, -36, -39, 63, -2, 29, 2, -90, 41, -120, -11, -110,
                94, -9, 38, -43, 20, 57, 76, -52, -11, -24, -73, 10, 45, 32, -38, -77, -98, 107, 65, -82, -93, -101,
                -86, 35, -102, 65, 0, -67, -63, -96, -72, 125, -110, -41, 93, 20, -85, -92, -43, -8, 44, -118, -20, -2,
                -11, 106, -54, 40, -8, -41, -120, 20, 89, -11, 110, 92, 107, 113, 77, 120, -81, 22, -22, 31, 75, 28,
                -113, -57, -53, -93, -38, 30, 36, 17, 121, -125, -122, 21, 6, -84, -57, -58, -14, 39, 44, 55, 16, -1,
                -91, 93, -40, 121, 12, 77, 22, 112, -51, 82, -2, 119, 26, -66, 29, -74, 89, -1, -37, -102, 119, 127,
                33, -57, -3, 2, 3, 1, 0, 1 };
        this.b = new a();
        try {
            this.b.a(arrayOfByte);
        } catch (NoSuchAlgorithmException localNoSuchAlgorithmException) {
            c.a("RSA", new Object[] { localNoSuchAlgorithmException.toString() });
        } catch (InvalidKeySpecException localInvalidKeySpecException) {
            c.a("RSA", new Object[] { localInvalidKeySpecException.toString() });
        }
    }

    public String a(String paramString) {
        String str = "";
        try {
            str = com.qihoo.gamecenter.sdk.common.i.a.b(this.b.b(paramString.getBytes()), 2).replace("+", "-")
                    .replace("/", "_");
        } catch (Exception localException) {
            c.a("RSA", new Object[] { localException.toString() });
        }
        return str;
    }
}